<?php echo form_open('admin/dataman/area_state_update');?>

<?php //if (!empty($items)): ?>
	<h3><?php echo lang('dataman.area'); ?></h3>
	<div style="margin-bottom:10px;margin-left:10px;"><?php echo anchor( 'admin/dataman/city_view', lang('dataman.content.form.city.manage') );?></div>
	<div id="action"><?php $this->load->view('admin/partials/buttons', array('buttons' => array('add'))); ?></div>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th><?php echo lang('dataman.content.id'); ?></th>
				<th><?php echo lang('dataman.area.state.name'); ?></th>
				<th><?php echo lang('dataman.edit'); ?></th>
				<th><?php echo lang('dataman.delete'); ?></th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="4">
					<div class="inner"><?php echo $pagination; ?></div>
				</td>
			</tr>
		</tfoot>
		<tbody>
	 	<?php foreach( $contents as $state ): ?>
			<tr>
				<td><?php echo $state->id; ?></td>
				<td><?php echo stripslashes( $state->name ); ?></td>
				<td><?php echo anchor('admin/dataman/state_edit/'. $state->id,lang('dataman.edit'));?> </td>	
				<td><?php echo anchor('admin/dataman/state_delete/'. $state->id,lang('dataman.delete'));?> </td>	
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

<?php echo form_close(); ?>